﻿<UserControl x:Class="Poker.Calculator.Wpf.Views.PokerPlayerHandsView"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
             xmlns:local="clr-namespace:Poker.Calculator.Wpf.Views" mc:Ignorable="d" 
             >
    <UserControl.Resources>
        <local:PercentageConverter x:Key="percentage" />
    </UserControl.Resources>
    <Grid>
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="2*" />
            <ColumnDefinition Width="1*" />
            <ColumnDefinition Width="1*" />
            <ColumnDefinition Width="1*" />
            <ColumnDefinition Width="1*" />
        </Grid.ColumnDefinitions>
        <Grid.RowDefinitions>
            <RowDefinition />
            <RowDefinition />
            <RowDefinition />
            <RowDefinition />
            <RowDefinition />
            <RowDefinition />
            <RowDefinition />
            <RowDefinition />
            <RowDefinition />
            <RowDefinition />
            <RowDefinition />
        </Grid.RowDefinitions>
        <Label Grid.Row="0" Grid.Column="1" Content="Prob" />
        <Label Grid.Row="0" Grid.Column="2" Content="Wins" />
        <Label Grid.Row="0" Grid.Column="3" Content="Splits" />
        <Label Grid.Row="0" Grid.Column="4" Content="Losts" />

        <local:CountedLabel Grid.Row="1" Grid.Column="0" Label="Royal Flush" Count="{Binding Path=RoyalFlush.Count}" />
        <local:CountedLabel Grid.Row="2" Grid.Column="0" Label="Straight Flush" Count="{Binding Path=StraightFlush.Count}"/>
        <local:CountedLabel Grid.Row="3" Grid.Column="0" Label="Four of Kind" Count="{Binding Path=FourOfKind.Count}"/>
        <local:CountedLabel Grid.Row="4" Grid.Column="0" Label="Full House" Count="{Binding Path=FullHouse.Count}"/>
        <local:CountedLabel Grid.Row="5" Grid.Column="0" Label="Flush" Count="{Binding Path=Flush.Count}"/>
        <local:CountedLabel Grid.Row="6" Grid.Column="0" Label="Straight" Count="{Binding Path=Straight.Count}"/>
        <local:CountedLabel Grid.Row="7" Grid.Column="0" Label="Three of Kind" Count="{Binding Path=ThreeOfKind.Count}"/>
        <local:CountedLabel Grid.Row="8" Grid.Column="0" Label="Two Pairs" Count="{Binding Path=TwoPairs.Count}"/>
        <local:CountedLabel Grid.Row="9" Grid.Column="0" Label="One Pair" Count="{Binding Path=OnePair.Count}"/>
        <local:CountedLabel Grid.Row="10" Grid.Column="0" Label="High Card" Count="{Binding Path=HighCard.Count}"/>

        <Label Grid.Row="1" Grid.Column="1" Content="{Binding Path=RoyalFlush.Percentage, Converter={StaticResource percentage}}" />
        <Label Grid.Row="2" Grid.Column="1" Content="{Binding Path=StraightFlush.Percentage, Converter={StaticResource percentage}}" />
        <Label Grid.Row="3" Grid.Column="1" Content="{Binding Path=FourOfKind.Percentage, Converter={StaticResource percentage}}" />
        <Label Grid.Row="4" Grid.Column="1" Content="{Binding Path=FullHouse.Percentage, Converter={StaticResource percentage}}" />
        <Label Grid.Row="5" Grid.Column="1" Content="{Binding Path=Flush.Percentage, Converter={StaticResource percentage}}" />
        <Label Grid.Row="6" Grid.Column="1" Content="{Binding Path=Straight.Percentage, Converter={StaticResource percentage}}" />
        <Label Grid.Row="7" Grid.Column="1" Content="{Binding Path=ThreeOfKind.Percentage, Converter={StaticResource percentage}}" />
        <Label Grid.Row="8" Grid.Column="1" Content="{Binding Path=TwoPairs.Percentage, Converter={StaticResource percentage}}" />
        <Label Grid.Row="9" Grid.Column="1" Content="{Binding Path=OnePair.Percentage, Converter={StaticResource percentage}}" />
        <Label Grid.Row="10" Grid.Column="1" Content="{Binding Path=HighCard.Percentage, Converter={StaticResource percentage}}" />

        <Label Grid.Row="1" Grid.Column="2" Content="{Binding Path=RoyalFlush.Wins.Percentage, Converter={StaticResource percentage}}" />
        <Label Grid.Row="2" Grid.Column="2" Content="{Binding Path=StraightFlush.Wins.Percentage, Converter={StaticResource percentage}}" />
        <Label Grid.Row="3" Grid.Column="2" Content="{Binding Path=FourOfKind.Wins.Percentage, Converter={StaticResource percentage}}" />
        <Label Grid.Row="4" Grid.Column="2" Content="{Binding Path=FullHouse.Wins.Percentage, Converter={StaticResource percentage}}" />
        <Label Grid.Row="5" Grid.Column="2" Content="{Binding Path=Flush.Wins.Percentage, Converter={StaticResource percentage}}" />
        <Label Grid.Row="6" Grid.Column="2" Content="{Binding Path=Straight.Wins.Percentage, Converter={StaticResource percentage}}" />
        <Label Grid.Row="7" Grid.Column="2" Content="{Binding Path=ThreeOfKind.Wins.Percentage, Converter={StaticResource percentage}}" />
        <Label Grid.Row="8" Grid.Column="2" Content="{Binding Path=TwoPairs.Wins.Percentage, Converter={StaticResource percentage}}" />
        <Label Grid.Row="9" Grid.Column="2" Content="{Binding Path=OnePair.Wins.Percentage, Converter={StaticResource percentage}}" />
        <Label Grid.Row="10" Grid.Column="2" Content="{Binding Path=HighCard.Wins.Percentage, Converter={StaticResource percentage}}" />

        <Label Grid.Row="1" Grid.Column="3" Content="{Binding Path=RoyalFlush.Splits.Percentage, Converter={StaticResource percentage}}" />
        <Label Grid.Row="2" Grid.Column="3" Content="{Binding Path=StraightFlush.Splits.Percentage, Converter={StaticResource percentage}}" />
        <Label Grid.Row="3" Grid.Column="3" Content="{Binding Path=FourOfKind.Splits.Percentage, Converter={StaticResource percentage}}" />
        <Label Grid.Row="4" Grid.Column="3" Content="{Binding Path=FullHouse.Splits.Percentage, Converter={StaticResource percentage}}" />
        <Label Grid.Row="5" Grid.Column="3" Content="{Binding Path=Flush.Splits.Percentage, Converter={StaticResource percentage}}" />
        <Label Grid.Row="6" Grid.Column="3" Content="{Binding Path=Straight.Splits.Percentage, Converter={StaticResource percentage}}" />
        <Label Grid.Row="7" Grid.Column="3" Content="{Binding Path=ThreeOfKind.Splits.Percentage, Converter={StaticResource percentage}}" />
        <Label Grid.Row="8" Grid.Column="3" Content="{Binding Path=TwoPairs.Splits.Percentage, Converter={StaticResource percentage}}" />
        <Label Grid.Row="9" Grid.Column="3" Content="{Binding Path=OnePair.Splits.Percentage, Converter={StaticResource percentage}}" />
        <Label Grid.Row="10" Grid.Column="3" Content="{Binding Path=HighCard.Splits.Percentage, Converter={StaticResource percentage}}" />

        <Label Grid.Row="1" Grid.Column="4" Content="{Binding Path=RoyalFlush.Losts.Percentage, Converter={StaticResource percentage}}" />
        <Label Grid.Row="2" Grid.Column="4" Content="{Binding Path=StraightFlush.Losts.Percentage, Converter={StaticResource percentage}}" />
        <Label Grid.Row="3" Grid.Column="4" Content="{Binding Path=FourOfKind.Losts.Percentage, Converter={StaticResource percentage}}" />
        <Label Grid.Row="4" Grid.Column="4" Content="{Binding Path=FullHouse.Losts.Percentage, Converter={StaticResource percentage}}" />
        <Label Grid.Row="5" Grid.Column="4" Content="{Binding Path=Flush.Losts.Percentage, Converter={StaticResource percentage}}" />
        <Label Grid.Row="6" Grid.Column="4" Content="{Binding Path=Straight.Losts.Percentage, Converter={StaticResource percentage}}" />
        <Label Grid.Row="7" Grid.Column="4" Content="{Binding Path=ThreeOfKind.Losts.Percentage, Converter={StaticResource percentage}}" />
        <Label Grid.Row="8" Grid.Column="4" Content="{Binding Path=TwoPairs.Losts.Percentage, Converter={StaticResource percentage}}" />
        <Label Grid.Row="9" Grid.Column="4" Content="{Binding Path=OnePair.Losts.Percentage, Converter={StaticResource percentage}}" />
        <Label Grid.Row="10" Grid.Column="4" Content="{Binding Path=HighCard.Losts.Percentage, Converter={StaticResource percentage}}" />

    </Grid>
</UserControl>
